package cc.momas.momall.po;

import java.io.Serializable;
import java.util.Date;

public class TbItem  implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

    private Long id;
    /**商品标题*/
    private String title;
    /**商品卖点*/
    private String sellPoint;
    /**商品价格*/
    private Long price;
    /**商品库存数量*/
    private Integer num;
    /**商品条形码*/
    private String barcode;
    /**商品图片地址*/
    private String image;
    /**商品类目Id*/
    private Long cid;
    /**商品状态(1-正常 2-下架 3-删除)*/
    private Byte status;
    /**商品创建日期*/
    private Date created;
    /**商品更新日期*/
    private Date updated;
    /**商品类目*/
    private TbItemCat catetory;
    
    /**商品状态为上架*/
    public static final byte INSTOCK = 1;
    /**商品状态为下架*/
    public static final byte OUTSTOCK = 2;
    /**商品状态为已删除*/
    public static final byte DELETED = 3;
    
    public TbItemCat getCatetory() {
		return catetory;
	}

	public void setCatetory(TbItemCat catetory) {
		this.catetory = catetory;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getSellPoint() {
        return sellPoint;
    }

    public void setSellPoint(String sellPoint) {
        this.sellPoint = sellPoint == null ? null : sellPoint.trim();
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode == null ? null : barcode.trim();
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image == null ? null : image.trim();
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }
}